package kr.hkit.calendarproject12.MyDBHelper;

import kr.hkit.calendarproject12.DTO.InputWord;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MyDBHelper extends SQLiteOpenHelper { // 데이터베이스 클래스
	
	public MyDBHelper(Context context) {
		super(context, InputWord.DB_NANE, null, InputWord.DB_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(InputWord.CREATE_TBL1);
		//db.execSQL(InputWord.CREATE_TBL2);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL(InputWord.DROP_TBL1);
		//db.execSQL(InputWord.DROP_TBL2);
		onCreate(db);
	}

}